#define _CRT_SECURE_NO_WARNINGS 1
int TreeLeafsize(BTNode* root)
{
    if (root == NULL)
    {
        return 0;
    }
    if (root->left == NULL && root->right)
    {
        return 1;
    }
    return TreeLeafsize(root->left) + TreeLeafsize(root->right);
}